from lib.database import Base
from sqlalchemy import Column, Integer, String

class SysUser(Base):
    """
    用户信息表
    """
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True, autoincrement=True, comment='用户ID')
    username = Column(String(100), default="", nullable=False, comment='用户名')
    password = Column(String(100), default="", nullable=False, comment="登陆密码")
    role     = Column(String(30), default="", nullable=False, comment="用户角色")
   